package com.imyours.webservice.services;

import com.imyours.webservice.service.Context;
import com.imyours.webservice.service.ContextService;
import com.imyours.webservice.services.annotation.Service;

/**判断是否是管理员
 * @author SLevenc
 *
 */
@Service(name="isAdmin")
public class IsAdmin extends ContextService{

	public IsAdmin(Context context) {
		super(context);
	}
	public void execute() {
		if(isAdmin()){
			context.success();
		}
	}
}
